package com.carol.lmsbe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carol.lmsbe.dto.*;

import java.util.List;
import java.util.Map;

/**
 * 设备维修服务接口
 */
public interface EquipmentRepairService {

    /**
     * 分页查询设备维修记录
     */
    Page<EquipmentRepairDTO> listRepairRecords(EquipmentRepairQueryRequest request);

    /**
     * 根据ID获取维修记录详情
     */
    EquipmentRepairDTO getRepairRecordById(Long id);

    /**
     * 创建设备维修记录
     */
    EquipmentRepairDTO createRepairRecord(EquipmentRepairRequest request);

    /**
     * 更新设备维修记录
     */
    EquipmentRepairDTO updateRepairRecord(EquipmentRepairUpdateRequest request);

    /**
     * 删除设备维修记录
     */
    void deleteRepairRecord(Long id);

    /**
     * 获取设备维修统计
     */
    List<Map<String, Object>> getRepairStatistics(EquipmentStatisticsRequest request);

    /**
     * 获取我的维修记录
     */
    Page<EquipmentRepairDTO> getMyRepairRecords(EquipmentRepairQueryRequest request);

    /**
     * 批量删除维修记录
     */
    void batchDeleteRepairRecords(List<Long> ids);

    /**
     * 导出维修数据
     */
    byte[] exportRepairData(EquipmentRepairQueryRequest request);
}
